package com.yingxin.yxerp.module.permission.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author fanchao
 * @since 2021-05-13
 */

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RoleCreateVo对象", description = "角色")
public class RoleCreateVo implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "角色名称")
    @Length(max = 35)
    @NotBlank(message = "名称不能为空")
    private String name;

   /*
    @ApiModelProperty(value = "状态 0 禁用  1 启用")
    @Length(max = 1)
    private String status;
    */

    @ApiModelProperty(value = "排序值")
    @Range(min = 0, max = 99999999)
    private String sort;

    @Length(max = 255)
    private String remarks;

    @ApiModelProperty(value = "权限ids")
    private List<String> permissionIds;

    private String updaterId;

}
